package org.nestor.demo.server;

import io.grpc.Server;
import io.grpc.ServerBuilder;
import org.nestor.demo.service.ChatServiceImpl;
import org.nestor.demo.service.OrderQueryServiceImpl;

import java.io.IOException;

/**
 * 双向流示例
 *
 * @author : Nestor.Bian
 * @version : V 1.0
 * @date : 2025/3/6
 */
public class ChatServer {
    public static void main(String[] args) throws IOException, InterruptedException {
        Server server = ServerBuilder.forPort(50051)
                .addService(new ChatServiceImpl())
                .build()
                .start();
        server.awaitTermination();
    }
}
